home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-pooemp.adb < prev    next >
Text File  |  1996-01-30  |  3KB  |  87 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. --                    S Y S T E M . P O O L _ E M P T Y                     --
  6. --                                                                          --
  7. --                                 B o d y                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.3 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- The GNAT library is free software; you can redistribute it and/or modify --
  14. -- it under terms of the GNU Library General Public License as published by --
  15. -- the Free Software  Foundation; either version 2, or (at your option) any --
  16. -- later version.  The GNAT library is distributed in the hope that it will --
  17. -- be useful, but WITHOUT ANY WARRANTY;  without even  the implied warranty --
  18. -- of MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR PURPOSE.  See the  GNU --
  19. -- Library  General  Public  License for  more  details.  You  should  have --
  20. -- received  a copy of the GNU  Library  General Public License  along with --
  21. -- the GNAT library;  see the file  COPYING.LIB.  If not, write to the Free --
  22. -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.        --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Storage_Pools;    use System.Storage_Pools;
  27. with System.Storage_Elements; use System.Storage_Elements;
  28.  
  29. package body System.Pool_Empty is
  30.  
  31.    ------------------
  32.    -- Storage_Size --
  33.    ------------------
  34.  
  35.    function  Storage_Size (Pool : Empty_Pool) return Storage_Count is
  36.    begin
  37.       return 0;
  38.    end Storage_Size;
  39.  
  40.    --------------
  41.    -- Allocate --
  42.    --------------
  43.  
  44.    procedure Allocate
  45.      (Pool         : in out Empty_Pool;
  46.       Address      : out System.Address;
  47.       Storage_Size : Storage_Count;
  48.       Alignment    : Storage_Count)
  49.    is
  50.    begin
  51.       raise Storage_Error;
  52.    end Allocate;
  53.  
  54.    ----------------
  55.    -- Deallocate --
  56.    ----------------
  57.  
  58.    procedure Deallocate
  59.      (Pool         : in out Empty_Pool;
  60.       Address      : System.Address;
  61.       Storage_Size : Storage_Count;
  62.       Alignment    : Storage_Count)
  63.    is
  64.    begin
  65.       raise Storage_Error;
  66.    end Deallocate;
  67.  
  68.    --------------
  69.    -- Finalize --
  70.    --------------
  71.  
  72.    procedure Finalize  (Pool : in out Empty_Pool) is
  73.    begin
  74.       null;
  75.    end Finalize;
  76.  
  77.    ----------------
  78.    -- Initialize --
  79.    ----------------
  80.  
  81.    procedure Initialize  (Pool : in out Empty_Pool) is
  82.    begin
  83.       null;
  84.    end Initialize;
  85.  
  86. end System.Pool_Empty;
  87.